/**
 * File: CurtainContextModule.java
 * Created by: mhaimel
 * Created on: 6 Jul 2009
 * CVS:  $Id: CurtainContextModule.java,v 1.1 2009/08/05 15:16:12 mhaimel Exp $
 */
package uk.ac.ebi.curtain.configuration;

import uk.ac.ebi.curtain.CurtainContext;

import com.google.inject.AbstractModule;

/**
 * @author mhaimel
 *
 */
public class CurtainContextModule extends AbstractModule {

	private final CurtainContext cxt;

	public CurtainContextModule(CurtainContext cxt) {
		this.cxt = cxt;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected void configure() {
		bind(CurtainContext.class).toInstance(this.cxt);
	}
}
